//
//  RequestOperationManager.m
//  CFFinanceProject
//
//  Created by chunfeng on 2018/4/9.
//  Copyright © 2018年 xiaowen. All rights reserved.
//

#import "RequestOperationManager.h"

@implementation RequestOperationManager

+ (void)LoginWithMoble:(NSString *)moble
                   paw:(NSString *)psw
               success:(void (^)(id result))successBlock
              failture:(void (^)(NSError *error))failtureBlock{
    
    NSDictionary * parameter = OKDicBind(moble,psw);
    [RequestHttpNetWrok requestPostWithParameters:parameter urlString:DEF_INTERFACE_LOGIN finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}


+ (void)getTimeData_success:(void (^)(id result))successBlock
                   failture:(void (^)(NSError *error))failtureBlock   {
    NSString * urlstr = @"http://htmmarket.fx678.com/time.php?excode=WGJS&code=XAU&time=1525417383&token=ae439e925984990f9af8dcf229835e79&key=5d9fd34e579114824d74e96a02e6111d";
    [RequestHttpNetWrok requestPostWithParameters:nil urlString:urlstr finishHandle:^(id result) {
    successBlock(result);
} failHandle:^(NSError *error) {
    failtureBlock(error);
}];
}

@end
